package com.xbongbong.pro.message.feign;

import com.xbongbong.pro.coolapp.pojo.dto.CoolAppSendRemindTopCardDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author zsn
 * @date 2022-07-06 14:26
 */

@FeignClient(name = "pro-web-dingtalk", contextId = "coolAppFeignClient")
public interface CoolAppFeignClient {

    @RequestMapping(value = "/pro/v1/mobile/coolapp/card/send/remindTopCard", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    void sendCommunicateTopCard(@RequestBody CoolAppSendRemindTopCardDTO coolAppSendRemindTopCardDTO, @RequestParam("lang") String lang);

    @RequestMapping(value = "/pro/v1/mobile/coolapp/card/send/communicatePlanTopCard", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    void sendCommunicatePlanTopCard(@RequestBody CoolAppSendRemindTopCardDTO coolAppSendRemindTopCardDTO, @RequestParam("lang") String lang);
}
